package com.eaero.tool;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author zb
 * @Date 2024/3/7 15:38
 */
@Service
public class TmsBorrowToolsService implements ThirdBorrowToolService{
    @Autowired
    private CommonToolsService commonToolsService;

    @Override
    public String checkBorrowOrder() {
        //判断 orderCode orderType
        //查库
        commonToolsService.checkBorrowOrder();
        return "MroBorrowToolsService.checkBorrowOrder";
    }

    @Override
    public String checkBorrowTools() {
        String checkToolsStatus = commonToolsService.checkToolsStatus();
        System.out.println("tms:"+checkToolsStatus);
        String checkToolsMeasurement = commonToolsService.checkToolsMeasurement();
        System.out.println("tms:"+checkToolsMeasurement);
        String checkToolsMaintenance = commonToolsService.checkToolsMaintenance();
        System.out.println("tms:"+checkToolsMaintenance);
        String checkSuitTools = commonToolsService.checkSuitTools();
        System.out.println("tms:"+checkSuitTools);
        return "tms查库检查完成";
    }

    @Override
    public String doThirdBorrowTools() {
        return "TmsBorrowToolsService.borrowToolsList";
    }

    @Override
    public String updateToolStatus() {
        return commonToolsService.updateToolStatus();
    }

    @Override
    public String saveBorrowRecord() {
        return commonToolsService.saveBorrowRecord();
    }
}
